/**
 * This file is a part of qloudgen-sec. 
 * You can redistribute qloudgen-sec and/or modify it under the terms of the Lesser GNU General Public License version 3. 
 * qloudgen-sec is distributed WITHOUT ANY WARRANTY. 
 *
 * See the Lesser GNU General Public License for more details at http://www.gnu.org/licenses/. 
 **/
package org.redisson.core;

import java.util.Date;
import java.util.concurrent.TimeUnit;

public interface RFakeExpirable extends RObject {

    boolean expire(Object key , long timeToLive , TimeUnit timeUnit);

    boolean expireAt(Object key , long timestamp);

    boolean expireAt(Object key , Date timestamp);

    boolean clearExpire(Object key);

    long remainTimeToLive(Object key);
}